<?php

namespace app\admin\controller;

use app\common\business\AdminRole;
use app\common\lib\Param;
use app\common\lib\Show;
use think\response\Json;

class Statistics extends AdminBase
{
    /**
     * 顶部数量统计
     * @return Json
     */
    public function topNum(): Json
    {
        try {
            $result=(new \app\common\business\Statistics())->getTopNum();
        }catch (\Exception $e){
            return Show::error([], $e->getMessage(), $e->getCode());
        }
        return Show::success($result);
    }
}
